<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Orange Button</title>
        <style>
            body {
                display: flex;
                justify-content: center;
                align-items: center;
                height: 100vh;
                margin: 0;
                background-color: #303643;
            }
            .btn-box {
                padding-right: 50px;
                border-radius: 22px;
                transition: transform 0.2s;
                box-shadow: 0 20px 16px -10px rgb(0 0 0 / 20%);
            }
            .button {
                text-shadow: 0 1px 2px #1e373e;
                background-image: linear-gradient(180deg, #ffdb8c , #fea43c , #ffa32b,#fe8c2a);
                border: none;
                border-radius: 22px 0 0 22px;
                border-bottom: 4px solid #db4517;
                color: #fff;
                font-weight: bold;
                font-size: 18px;
                line-height: 1.5;
                padding: 20px 40px;
                cursor: pointer;
                position: relative;
            }
            .button::after {
                content: "B";
                display: flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                height: 100%;
                width: 50px;
                top: 0;
                right: -49px;
                background-image: linear-gradient(180deg, #aeff8c , #7efe3c , #56ff2b,#57fe2a);
                border-radius: 0 22px 22px 0;
                border-bottom: 4px solid #057d1d;
                overflow: hidden;
                transition: all 0.2s;
            }
            .btn-box:active {
                transform: scale(0.98);
            }
            .btn-box:hover .button::after {
                width: calc(100% + 49px);
                content: "Beside";
                border-top-left-radius: 22px;
                border-bottom-left-radius: 22px;
            }
        </style>
    </head>
    <body>
        <div class="btn-box">
            <button class="button">Action</button>
        </div>
    </body>
</html>
